<?php

/*
 * @author Ebrain Cedeno <ebraincedeno@gmail.com>
 */
class HomeController extends Controller{
    
    public function actionMenu(){
    
        //cargamos el grid de listado de usuario
        if (TSession::getSession("user")->rol->admin == 1){
            $this->grid_user = new UserController();
            $this->grid_user->actionGrid();
            
            $this->user = 'user';
            $this->grid = 'grid';
        }else{
            $this->grid_user = new QuoteController();
            $this->grid_user->actionGrid();
            
            $this->user = 'quote';
            $this->grid = 'grid';
        }
        
        
    }
    
    
}
?>
